package edu.scau.pos.refund.service;

import com.alipay.api.AlipayApiException;
import com.fasterxml.jackson.core.JsonProcessingException;
import edu.scau.pos.vo.OrdersVo;
import edu.scau.pos.vo.RefundOrderVo;

import java.util.List;
import java.util.Map;

public interface AfterSaleService {
    List<OrdersVo> listAll();

    Map refund(RefundOrderVo refundOrderVo,String refundId) throws AlipayApiException, JsonProcessingException;

    Map cancelBook(String orderId,String refundId) throws AlipayApiException, JsonProcessingException;

    Map queryRefundStatus(String refundId) throws AlipayApiException, JsonProcessingException;

    Map refundService(RefundOrderVo refundOrderVo) throws AlipayApiException, JsonProcessingException;

    Map reRefund(String refundId) throws AlipayApiException, JsonProcessingException;
}
